FROM frolvlad/alpine-java:jdk8-full
VOLUME /tmp

ADD ./target/manage-api-1.0.0.jar app.jar

ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom -Duser.timezone=GMT+08","-jar","/app.jar"]